﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Power.Models
{
    public class EvaluationRecordEntity: BaseModel
    {
        //列表
        private ObservableCollection<EvaluateRecordEntity> evaluateRecordEntityList;
        public ObservableCollection<EvaluateRecordEntity> EvaluateRecordEntityList
        {
            get => evaluateRecordEntityList;
            set
            {
                evaluateRecordEntityList = value;
                RaisePropertyChanged();
            }
        }

        //片区
        private List<SelectListItem> areaSelectList;
        public List<SelectListItem> AreaSelectList
        {
            get => areaSelectList;
            set
            {
                areaSelectList = value;
                RaisePropertyChanged();
            }
        }

        //区块
        private List<SelectListItem> blockSelectList;
        public List<SelectListItem> BlockSelectList
        {
            get => blockSelectList;
            set
            {
                blockSelectList = value;
                RaisePropertyChanged();
            }
        }

        //工点
        private List<SelectListItem> workSelectList;
        public List<SelectListItem> WorkSelectList
        {
            get => workSelectList;
            set
            {
                workSelectList = value;
                RaisePropertyChanged();
            }
        }

        //批次
        private List<SelectListItem> batchSelectList;
        public List<SelectListItem> BatchSelectList
        {
            get => batchSelectList;
            set
            {
                batchSelectList = value;
                RaisePropertyChanged();
            }
        }

        /// <summary>
        /// 列名
        /// </summary>
        private ObservableCollection<ColumnListItem> columnList;
        public ObservableCollection<ColumnListItem> ColumnList
        {
            get => columnList;
            set
            {
                columnList = value;
                RaisePropertyChanged();
            }
        }
    }

    public class ColumnListItem : BaseModel
    {

        private bool isChecked;
        public bool IsChecked
        {
            get => isChecked;
            set
            {
                isChecked = value;
                RaisePropertyChanged();
            }
        }

        private string columnName;
        public string ColumnName
        {
            get => columnName;
            set
            {
                columnName = value;
                RaisePropertyChanged();
            }
        }
    }
}
